package com.lhc.nacosprovider.entity;


import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Date;
import java.sql.Timestamp;


/**
 * @author liuchaoqun
 * @date 2022/6/25
 * @Description 数据库测试
 */
@Data
@TableName("test")
public class DBTestEntity {

    @TableId
    private Long id;

    private String name;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date dateTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp timestamp;

    @JsonFormat(pattern = "yyyy年MM月dd日")
    private Date date;
}

